/* 基础样式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f4f4f4;
    padding: 20px;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

header {
    text-align: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

h1, h2 {
    color: #2c3e50;
}

main {
    margin-bottom: 30px;
}

section {
    margin-bottom: 30px;
    padding: 20px;
    background: #f9f9f9;
    border-radius: 5px;
}

.edit-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 20px;
}

label {
    font-weight: bold;
}

input[type="text"] {
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
}

button {
    padding: 10px 15px;
    background: #3498db;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    transition: background 0.3s;
}

button:hover {
    background: #2980b9;
}

#current-title {
    font-size: 18px;
    font-weight: bold;
    color: #2c3e50;
    padding: 10px;
    background: #ecf0f1;
    border-radius: 4px;
}

.history ul {
    list-style-type: none;
}

.history li {
    padding: 10px;
    border-bottom: 1px solid #eee;
}

.history li:last-child {
    border-bottom: none;
}

footer {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #eee;
    color: #7f8c8d;
}

/* 响应式设计 */
@media (max-width: 600px) {
    .container {
        padding: 15px;
    }
    
    .edit-form {
        flex-direction: column;
    }
    
    input[type="text"] {
        width: 100%;
    }
}